home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / PCCP024.ARJ / EMU.C < prev    next >
C/C++ Source or Header  |  1992-05-17  |  393b  |  24 lines

  1. /* Released to the Public Domain in 1992 by Peter Edward Cann */
  2.  
  3. #include"emu.h"
  4.  
  5. struct emu_s emu;
  6.  
  7. nullemu()
  8.     {
  9.     int i;
  10.     for(i=0;i<NFUNCS;i++)
  11.         {
  12.         emu.funcs[i].func=NOOP;
  13.         emu.funcs[i].codes[0]=END;
  14.         }
  15.     for(i=0;i<256;i++)
  16.         emu.keys[i].len=0;
  17.     for(i=0;i<256;i++)
  18.         emu.gchars[i]=0;
  19.     emu.keys[0x03].len=1;
  20.     emu.keys[0x03].chars[0]='\0';
  21.     emu.default_wrap_p=1;
  22.     }
  23.  
  24.